dojo.declare("MHomePg", wm.Page, {
start: function() {
},
"preferredDevice": "phone",
navButton1Click1: function(inSender) {
},
navButton2Click1: function(inSender) {
if (app.vAccount) {
//console.log(app.vAccount);
if (app.vAccount.data.accountId) {
// console.log(app.vAccount.data);
// console.log(app.vAccount.data.accountId);
wm.Page.getPage("MAccountPg").layer4.activate();
} else {
wm.Page.getPage("MAccountPg").layer1.activate();
}
}
},
_end: 0
});

MHomePg.widgets = {
phonegapCredentialStorage: ["wm.Variable", {"saveInPhonegap":true,"type":"StringData"}, {}],
layoutBox1: ["wm.Layout", {"horizontalAlign":"left","verticalAlign":"top"}, {}, {
panel1: ["wm.Panel", {"height":"48px","horizontalAlign":"left","layoutKind":"left-to-right","styles":{},"verticalAlign":"top","width":"100%"}, {}, {
picture1: ["wm.Picture", {"height":"100%","source":"resources/images/logos/ecart-logo4.jpg","styles":{},"width":"100%"}, {}]
}],
layers1: ["wm.Layers", {"margin":"1,0,0,0","styles":{},"transition":"fade"}, {}, {
layer1: ["wm.Layer", {"borderColor":"","caption":"layer1","horizontalAlign":"left","themeStyleType":"","verticalAlign":"top"}, {}, {
pageContainer2: ["wm.PageContainer", {"border":"1","deferLoad":true,"margin":"4","pageName":"MHomeMenuPg","subpageEventlist":{},"subpageMethodlist":{},"subpageProplist":{}}, {}]
}],
layer2: ["wm.Layer", {"borderColor":"","caption":"layer2","horizontalAlign":"left","themeStyleType":"","verticalAlign":"top"}, {}, {
pageContainer1: ["wm.PageContainer", {"deferLoad":true,"pageName":"MAccountPg","subpageEventlist":{},"subpageMethodlist":{},"subpageProplist":{}}, {}]
}],
layer3: ["wm.Layer", {"borderColor":"","caption":"layer3","horizontalAlign":"left","themeStyleType":"","verticalAlign":"top"}, {}, {
pageContainer3: ["wm.PageContainer", {"border":"1","deferLoad":true,"margin":"4","pageName":"MShopCartPg","subpageEventlist":{},"subpageMethodlist":{},"subpageProplist":{}}, {}]
}]
}],
toggleButtonPanel1: ["wm.ToggleButtonPanel", {"horizontalAlign":"left","manageHistory":true,"manageURL":true,"margin":"0,1,0,0","verticalAlign":"top"}, {}, {
binding: ["wm.Binding", {}, {}, {
wire: ["wm.Wire", {"expression":undefined,"source":"navButton1","targetProperty":"currentButton"}, {}]
}],
navButton1: ["wm.Button", {"border":"0,1,0,0","caption":"Home","height":"100%","imageIndex":58,"imageList":"app.silkIconList","margin":"0","width":"100%"}, {"onclick":"layer1","onclick1":"pageContainer2.mHomeMenuPg.layerDepartment"}],
navButton2: ["wm.Button", {"border":"0,1,0,0","caption":"Account","height":"100%","imageIndex":26,"imageList":"app.silkIconList","margin":"0","width":"100%"}, {"onclick":"layer2","onclick1":"navButton2Click1"}],
navButton3: ["wm.Button", {"border":"0","caption":"Cart","height":"100%","imageIndex":22,"imageList":"app.silkIconList","margin":"0","width":"100%"}, {"onclick":"layer3","onclick1":"pageContainer3.mShopCartPg.layer1"}]
}]
}]
};

MHomePg.prototype._cssText = '';
MHomePg.prototype._htmlText = '';